<section>
    
    <?php
    include_once 'application/modeles/gestionBD.class.php';
    
    foreach (VariableGlobales::$lesNews as $uneNews){
       $id = $uneNews->idNews;
       $titre = $uneNews->titre;
       $texte = $uneNews->texte;
       $image = Chemins::IMAGES_NEWS .'/'. $uneNews->image;
    ?>
    <article id="news">
        <aside>
            
           <?php
       //if (gestionBD::VerifNewsById2($id)==2){
           
          if(gestionBD::VerifNewsById3($id)==1){
          //var_dump($_REQUEST['video']);
          //var_dump($_REQUEST['id']);
          //if($_REQUEST['id']==TRUE){
           ?>                 
            <a href=index.php?controleur=news&action=Video&id=<?php echo $id ?>> <img src="<?php echo $image ?>" alt="photo produits" style="width:150px;margin-left: 45px;" /></a>
            <?php
           }
           else
//           else
               {
               ?>
            <a href=index.php?controleur=news&action=Detail&id=<?php echo $id?>><img src="<?php echo $image ?>" alt="photo produits" style="width:150px;margin-left: 45px;" /></a>
            <?php
            
           }
            ?>
            
            <h3><?php echo $titre ?></h3>
            <h1><?php echo $texte ?></h1>
            
        </aside>
        <!--</br>-->
        
    </article>
    <?php
    }
    
    ?>
</section>
